<template>
	<view class="loadErr">
		<view class="loadErrImg"><image src="../static/load_err.png" alt="" /></view>
		<view class="loadErrText">网络开小差了~</view>
		<view class="reloadBtn" @click="toRelaod">重新加载</view>
	</view>
</template>

<script setup lang="ts">
	import { defineEmits } from 'vue'
	
	const emit = defineEmits(['toRelaodData'])
	
	const toRelaod = () => {
		emit('toRelaodData', true)
	}
</script>

<style scoped lang="scss">
	.loadErr {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 999;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background-color: $theme-white;
		.loadErrImg {
			width: 276rpx;
			height: 322rpx;
			margin-bottom: 40rpx;
		}
		.loadErrText {
			font-size: 28rpx;
			color: $theme-grey;
			text-align: center;
		}
		.reloadBtn {
			width: 200rpx;
			height: 70rpx;
			text-align: center;
			line-height: 70rpx;
			border-radius: 12rpx;
			font-size: 32rpx;
			color: $theme-white;
			// @extend .ur-theme-main-bg;
			position: absolute;
			bottom: 200rpx;
			left: 50%;
			margin-left: -100rpx;
		}
	}
</style>
